﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LuShanTea.Service.Entities
{
    public class AdminUser : BaseEntity
    {
        public string Name { get; set; }

        public string NickName { get; set; }

        public string PhoneNumber { get; set; }

        public string Email { get; set; }

        public string HashPwd { get; set; }

        public string Salt { get; set; }

        public string ImgSrc { get; set; }

        public bool Gender { get; set; } = true;

        public int LoginErrorCount { get; set; } = 0;

        public DateTime LastLoginErrorTime { get; set; } = DateTime.Now;

        public virtual ICollection<Role> Roles { get; set; } = new List<Role>();


    }
}
